﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FirstFloor.P2P
{
    /// <summary>
    /// Provides data for the SendDataFailed event.
    /// </summary>
    public class P2PSendDataFailedEventArgs
        : P2PValueEventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="P2PSendDataFailedEventArgs"/> class.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="data">The data.</param>
        public P2PSendDataFailedEventArgs(int type, string data)
            : base(data)
        {
            this.Type = type;
        }

        /// <summary>
        /// Gets the type of the error.
        /// </summary>
        /// <value>The type.</value>
        public int Type { get; private set; }
    }
}
